#ifndef TERMINALDIALOG_H
#define TERMINALDIALOG_H

#include <QDialog>
#include <QProcess>

namespace Ui {
class TerminalDialog;
}

class TerminalDialog : public QDialog
{
    Q_OBJECT

public:
    explicit TerminalDialog(QWidget *parent = nullptr);
    ~TerminalDialog();

private slots:
    void on_pushButton_clicked();
    void onReadStandardOutput();
    void onReadStandardError();

    void on_pushButton_2_clicked();

private:
    Ui::TerminalDialog *ui;
    QProcess *process;
    int counter = 0;
};

#endif // TERMINALDIALOG_H
